package LEKIEUANH.OOP.LEVEL2.ex01;

public class OctagonEntity {
private double a;

public OctagonEntity(){
	a = 1.0;
}
public OctagonEntity(double a){
	this.a = a;
}

public double getA() {
	return a;
}
public void setA(double a) {
	this.a = a;
}
public double Area(OctagonEntity objOctagon){
	return (2 + 4/Math.sqrt(2)) * objOctagon.getA() * objOctagon.getA(); 
}
public double Peri(OctagonEntity objOctagonEntity){
	return objOctagonEntity.getA()*8;
}
}
